<!DOCTYPE html>
<html>
<head>
<script>
function test()
{
    if (window.testRunner)
        testRunner.dumpAsText();

    var host = document.createElement('div');
    document.body.appendChild(host);
    var shadow = host.attachShadow({mode: 'open'});

    var ul = document.createElement('ul');
    var li = document.createElement('li');
    ul.appendChild(li);
    shadow.appendChild(ul);
    document.body.offsetLeft;

    document.body.innerHTML = 'PASS unless crash.';
}
</script>
</head>
<body onload="test()">
</body>
</html>
